<!DOCTYPE html>
<!-- saved from url=(0241)https://shang.qq.com/open_webaio.html?sigt=c507d8a5f42a15779fd07c0f966b6612d41834a7ad114e6459b1845928189e82799ff7594a6133b939b6d6335df9f18d&sigu=c0e0bb919f26ad229682be8e5f8d07cb9433656385caae443c0394956dd38f81cffe8c6f0c5d0fd8&tuin=1181275422 -->
<html lang="zh" xmlns:th="http://www.thymeleaf.org"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  
  <title>QQ在线状态</title>
  <link rel="stylesheet" type="text/css" th:href="@{/frameindex/open_webaio.css}">
</head>
<body style="zoom: 1;">
<div class="header">
  <div class="header_content container">
    <div class="logo"></div>
  </div>
</div>
<div class="container">
  <div class="inner_box">
    <div id="info-icon"></div>
    <div class="tips">
      <p><span id="tip_word"></span>如果无法打开聊天窗口，请下载最新版QQ</p>
      <p>继续与&nbsp;<span id="toUser" th:text="@{qq}">1181275422</span>&nbsp;会话。</p>
    </div>
    <div class="btns">
      <!-- <a href="javascript:void(0);" id="open-webaio" hidefocus="true">发起网页聊天</a> -->
      <!-- <a href="javascript:void(0);" id="close-btn" hidefocus="true">关闭</a> -->
    </div>
  </div>
</div>
<script type="text/javascript" th:src="@{/frameindex/jquery.min.js}"></script>
<script type="text/javascript">
  $.extend({
    stringify  : function stringify(obj) {
      if ("JSON" in window) {
        return JSON.stringify(obj);
      }

      var t = typeof (obj);
      if (t != "object" || obj === null) {
        if (t == "string") obj = '"' + obj + '"';

        return String(obj);
      } else {
        // recurse array or object
        var n, v, json = [], arr = (obj && obj.constructor == Array);

        for (n in obj) {
          v = obj[n];
          t = typeof(v);
          if (obj.hasOwnProperty(n)) {
            if (t == "string") {
              v = '"' + v + '"';
            } else if (t == "object" && v !== null){
              v = $.stringify(v);
            }

            json.push((arr ? "" : '"' + n + '":') + String(v));
          }
        }

        return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
      }
    }
  });
  var g = {
    closeWindow: function() {
      var browserName = navigator.appName;
      if(browserName == "Netscape"){
        window.open('', '_self', '');
        window.close();
      } else if(browserName == "Microsoft Internet Explorer") {
        window.opener = null;
        window.open('', '_top');
        window.top.close();
      }
    },
    getCookieValue: function (n) {
      var m = document.cookie.match(new RegExp("(^| )" + n + "=([^;]*)(;|$)"));
      return !m ? "" : unescape(m[2]);
    },
    getQueryValue : function (n){
      var m = window.location.search.replace(/(^\?+)|(#\S+$)/g,"")
      m = m.match(new RegExp("(^|&)" + n + "=([^&]*)(&|$)"));
      return ! m ? "": decodeURIComponent(m[2]);
    },
    getUserNick : function(uin) {
      $.getJSON('/wpa/user/online_state?callback=?', {
        retype : 2,
        uin : uin
      }, function(json){
        var nick = '对方';
        if(json.retcode == 0){
          nick = json.result.nick;
          $('#toUser').text(nick + '(' + uin + ')');
        } else {
          $('#toUser').text(uin);
        }
      });
    },
    addEvent : function(el, type, func){
      if(el.addEventListener){
        el.addEventListener(type, func, false);
      } else if(el.attachEvent){
        el.attachEvent("on" + type, func);
      } else {
        el["on" + type] = func;
      }
    },
    report : function(id){
      var timestamp = +new Date(),
          img = new Image();
      img.src = '//cgi.connect.qq.com/report/report?strValue=0&nValue=' + id + '&tag=0&t=' + timestamp;
    },
    reportGdt : function(qz_gdt){ //add by bizai 广点通组件转换上报
      var timestamp = +new Date(),
          img = new Image();
      img.src = '//c.gdt.qq.com/gdt_trace_a.fcg?client=33&actionid=65&clickid='+ qz_gdt + '&t=' + timestamp;
    },
    reportTdw : function(table, fields, data){
      var timestamp = +new Date(),
          img = new Image();
      img.src = '//cgi.connect.qq.com/report/tdw/report?table=' + table + '&fields=' + $.stringify(fields) + '&datas=' + encodeURIComponent($.stringify(data)) + '&t=' + timestamp;
    }
  };
  window.onload = function() {
    var sigt = g.getQueryValue("sigt"),
        sigu = g.getQueryValue("sigu"),
        tuin = g.getQueryValue("tuin"),
        ua = navigator.userAgent.toLowerCase();
    var timestamp = +new Date();
    g.report(10723);


    if(/webkit/.test(ua)){g.report(10764);}
    if(/firefox/.test(ua)){g.report(10765);}
    g.getUserNick(tuin);


    setTimeout(function(){
      g.closeWindow();
    }, 1000 * 10);
  };
</script>


</body></html>